# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ccrawldns
pkgver=6.92525b6
pkgrel=6
pkgdesc='Retrieves from the CommonCrawl data set unique subdomains for a given domain name.'
arch=('any')
groups=('blackarch' 'blackarch-recon')
url='https://github.com/lgandx/CCrawlDNS'
license=('GPL')
depends=('python' 'python-requests' 'python-argparse')
makedepends=('git')
source=("$pkgname::git+https://github.com/lgandx/CCrawlDNS.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 CCrawlDNS.py "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

